package run;

import java.util.ArrayList;
import java.util.List;

public class StrFacet extends Facet {

	private String origValue;
	private String value;
	
	public StrFacet(String name, Cell owner, boolean isInputFacet, String value) {
		super(name, owner, false);
		origValue = value;
		this.value = value;
	}
	
	@Override
	public List<Object> dispatchOutbound() {
		List<Object> outbound = new ArrayList<Object>();
		outbound.add(value);
		value = origValue;
		return outbound;
	}

	public void concat(Object concat) {
		value = value.concat(concat.toString());
	}
}